#!/usr/bin/env python
#-*- coding:utf-8 -*-

import os

def main(filename):
    rows = {}
    with open(filename, 'r', encoding='utf-8') as fp:
        for line in fp.readlines():
            #line = line.strip()
            if line not in rows:
                rows[line] = 0
            rows[line] += 1
    n = 0
    for key,row in rows.items():
        #print(key, row)
        if row == 1:
            n+=1
    print(len(rows))

def main(filename):
    with open(filename, 'r', encoding='utf-8') as fp:
        print('共{}关键行'.format(len(set(fp.readlines()))))

if __name__ == '__main__':
    main(os.path.dirname(__file__)+'/latex.log')